import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import './mock'

import Vant from 'vant';
import 'vant/lib/index.css';
import AMap from 'vue-amap';
import { Lazyload } from 'vant';
import { Button } from 'vant';
import { NoticeBar } from 'vant';

import { Toast } from 'vant';
Vue.use(Toast);
Vue.use(NoticeBar);
Vue.use(Button);
Vue.use(Lazyload);

Vue.use(Vant);

Vue.config.productionTip = false
Vue.use(AMap);

 // 初始化vue-amap
AMap.initAMapApiLoader({
 // 高德key
 key: 'e780857249de508fca700243a57915d6',
 // 插件集合 （插件按需引入）
 plugin: ['AMap.Geolocation']
});

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')